package com.topisv.tms.entity;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "shipped_batch")
public class ShippedBatch extends IdEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String batchType;
	@Column(name="batch_type")
	public String getBatchType() {
		return batchType;
	}
	public void setBatchType(String batchType) {
		this.batchType = batchType;
	}
	
	private String customerCode;//客户编码
	@Column(name="customer_code")
	public String getCustomerCode() {
		return customerCode;
	}
	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}
	private String areaGroupCode;//网点编码
	@Column(name="area_group_code")
	public String getAreaGroupCode() {
		return areaGroupCode;
	}
	public void setAreaGroupCode(String areaGroupCode) {
		this.areaGroupCode = areaGroupCode;
	}
	
	private String areaGroupName;//网点名称
	@Transient
	public String getAreaGroupName() {
		return areaGroupName;
	}
	public void setAreaGroupName(String areaGroupName) {
		this.areaGroupName = areaGroupName;
	}
	private String boxStatus;//表示是否已经装箱
	@Column(name="box_status")
	public String getBoxStatus() {
		return boxStatus;
	}
	public void setBoxStatus(String boxStatus) {
		this.boxStatus = boxStatus;
	}
	private int  ordenoQty ;//int(8) DEFAULT 0 COMMENT '订单数量',  
	private int  skuQty ;//int(8) DEFAULT 0 COMMENT '商品数量',  
	private int  skuType;// int(8) DEFAULT 0 COMMENT '商品种类',
	private String date;//订单日期区间
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	@Column(name="sku_type")
	public int getSkuType() {
		return skuType;
	}
	public void setSkuType(int skuType) {
		this.skuType = skuType;
	}
	@Column(name="ordeno_qty")
	public int getOrdenoQty() {
		return ordenoQty;
	}
	public void setOrdenoQty(int ordenoQty) {
		this.ordenoQty = ordenoQty;
	}
	@Column(name="sku_qty")
	public int getSkuQty() {
		return skuQty;
	}
	public void setSkuQty(int skuQty) {
		this.skuQty = skuQty;
	}
	private String username;
	@Column(name="user_name")
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	
	private String batchCode;// varchar(20) NOT NULL COMMENT '出库批次编号',
	private String jobuuid ;// varchar(64) NOT NULL COMMENT '操作人id号',
	private String type;//  varchar(2046) DEFAULT NULL COMMENT '任务类型 单件single 多件 ',
	private String status ;// varchar(30) NOT NULL COMMENT '状态：可选值:已经处理finish、未处理pending',
	private Date   createDate;//  date DEFAULT NULL COMMENT '生成时间',  
	private String backupTaskCode;//备货单号
	private int boxQty;//箱子个数
	@Column(name="box_qty")
	public int getBoxQty() {
		return boxQty;
	}
	public void setBoxQty(int boxQty) {
		this.boxQty = boxQty;
	}
	@Column(name="backup_task_code")
	public String getBackupTaskCode() {
		return backupTaskCode;
	}
	public void setBackupTaskCode(String backupTaskCode) {
		this.backupTaskCode = backupTaskCode;
	}
	@Column(name="batch_code")
	public String getBatchCode() {
		return batchCode;
	}
	public void setBatchCode(String batchCode) {
		this.batchCode = batchCode;
	}
	public String getJobuuid() {
		return jobuuid;
	}
	public void setJobuuid(String jobuuid) {
		this.jobuuid = jobuuid;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	@Column(name="create_date")
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	@Column(name="update_date")
	public Date getUpdateDate() {
		return updateDate;
	}
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
	public String getReserve() {
		return reserve;
	}
	public void setReserve(String reserve) {
		this.reserve = reserve;
	}
	private Date  updateDate;//  date DEFAULT NULL COMMENT '处理时间',  
	private String  reserve;//  varchar(64) DEFAULT NULL COMMENT '备用字段',   
	
	private String warehouseCode;
	
	public String getWarehouseCode() {
		return warehouseCode;
	}
	public void setWarehouseCode(String warehouseCode) {
		this.warehouseCode = warehouseCode;
	}

	private List<ShippedBox> shippedBoxs;
	@Transient
	public List<ShippedBox> getShippedBoxs() {
		return shippedBoxs;
	}
	public void setShippedBoxs(List<ShippedBox> shippedBoxs) {
		this.shippedBoxs = shippedBoxs;
	}

}
